﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;


using RobotCtrl;

namespace Test_WinCE_Radar
{
    public partial class Form1 : Form
    {
        Robot robot;

        public Form1()
        {
            InitializeComponent();
            this.robot = new Robot(RunMode.REAL);
            this.timer1.Interval = 1000;
            this.timer1.Enabled = true;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.lblDistanz.Text = robot.Radar.Distance.ToString();
        }

    }
}